package com.springboot.rookie.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
public class UserBean {
    private Integer id;
    private String name;
    private String phone;
    private String email;
    private Integer gender; // 0:女 1:男
    private Integer role;
    private DeptBean deptBean;
    private Date birth;
    private String password;

    public UserBean(Integer id, String name, String phone, String email, Integer gender, Integer role, DeptBean deptBean) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.email = email;
        this.gender = gender;
        this.role = role;
        this.deptBean = deptBean;
        this.birth = new Date();
        this.password = "123";
}
}
